package com.woniu.his.mms.client;

import com.woniu.his.mms.client.param.PatientParam;
import com.woniu.his.mms.client.param.RefundDrugParam;
import com.woniu.his.mms.client.result.PatientResult;
import com.woniu.his.mms.client.param.ReleaseDrugParam;
import com.woniu.his.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @version: java version 1.8
 * @Author: Mr tao
 * @description:
 * @date: 2022-11-29 15:41
 */
@FeignClient( contextId = "drugStoreClient", name = "mms",path = "mms")
public interface DrugStoreClient {

    /**
     * 刷新拿药患者
     * @return
     */
    @PostMapping("/listPatient")
    public Result<PatientResult> listPatient(@RequestBody PatientParam patientParam);

    /**
     * 拿药
     * @return
     */
    @PostMapping("/releaseDrug")
    public Result releaseDrug(@RequestBody ReleaseDrugParam releaseDrugParam);

    /**
     * 退药
     * @return
     */
    @PostMapping("/refundDrug")
    public Result refundDrug(@RequestBody RefundDrugParam refundDrugParam);


}




